Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HKISD-270: fix project managers permissions #245

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

saijaseppa
Copy link
Contributor

@saijaseppa saijaseppa commented Feb 20, 2025

Note: this is still a draft, waiting for refactoring in UI PR.

Description

Project manager is not allowed to delete projects.

Ticket: https://futurice.atlassian.net/jira/software/c/projects/HKISD/boards/62?selectedIssue=HKISD-270
Related PR in frontend: City-of-Helsinki/infraohjelmointi-ui#325

Testing

Set the roles in backend: in file BaseViewSet.py modify the permission_classes so that it includes only the projectManager role. In frontend: in file AuthSlice.ts uncomment from the ad_groups the projectManager group. This will simulate the case when user has only projectManager role.

@saijaseppa saijaseppa marked this pull request as draft February 21, 2025 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant